'- sdlBrt palette01_converterfromhexcolours.sdlbas > palette01.zxi
amnt=0x1000

dim c[amnt]
dim d[amnt]
dim e[amnt]

i=-1

'-0x000
i=i+1:c[i]=0x000000
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x550000
i=i+1:c[i]=0xAA0000
i=i+1:c[i]=0xFF0000

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x005500
i=i+1:c[i]=0x00AA00
i=i+1:c[i]=0x00FF00

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x000055
i=i+1:c[i]=0x0000AA
i=i+1:c[i]=0x0000FF

'-0x010
i=i+1:c[i]=0x000000
i=i+1:c[i]=0x005555
i=i+1:c[i]=0x00AAAA
i=i+1:c[i]=0x00FFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x550055
i=i+1:c[i]=0xAA00AA
i=i+1:c[i]=0xFF00FF

i=i+1:c[i]=0x555555
i=i+1:c[i]=0x555500
i=i+1:c[i]=0xAAAA00
i=i+1:c[i]=0xFFFF00

i=i+1:c[i]=0xFF0000
i=i+1:c[i]=0xFF5555
i=i+1:c[i]=0xFFAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x00FF00
i=i+1:c[i]=0x55FF55
i=i+1:c[i]=0xAAFFAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x0000FF
i=i+1:c[i]=0x5555FF
i=i+1:c[i]=0xAAAAFF
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x00FFFF
i=i+1:c[i]=0x55FFFF
i=i+1:c[i]=0xAAFFFF
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0xFF00FF
i=i+1:c[i]=0xFF55FF
i=i+1:c[i]=0xFFAAFF
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0xFFFF00
i=i+1:c[i]=0xFFFF55
i=i+1:c[i]=0xFFFFAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF





'-0x040

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x400000
i=i+1:c[i]=0x800000
i=i+1:c[i]=0xFF0000

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x400800
i=i+1:c[i]=0x801000
i=i+1:c[i]=0xFF2000

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x401000
i=i+1:c[i]=0x802000
i=i+1:c[i]=0xFF4000

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x401800
i=i+1:c[i]=0x803000
i=i+1:c[i]=0xFF6000

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x402000
i=i+1:c[i]=0x804000
i=i+1:c[i]=0xFF8000

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x402800
i=i+1:c[i]=0x805000
i=i+1:c[i]=0xFFA000

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x403000
i=i+1:c[i]=0x806000
i=i+1:c[i]=0xFFC000

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x403800
i=i+1:c[i]=0x807000
i=i+1:c[i]=0xFFE000






'-0x060

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x404000
i=i+1:c[i]=0x808000
i=i+1:c[i]=0xFFFF00

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x384000
i=i+1:c[i]=0x708000
i=i+1:c[i]=0xE0FF00

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x304000
i=i+1:c[i]=0x608000
i=i+1:c[i]=0xC0FF00

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x284000
i=i+1:c[i]=0x508000
i=i+1:c[i]=0xA0FF00

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x204000
i=i+1:c[i]=0x408000
i=i+1:c[i]=0x80FF00

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x184000
i=i+1:c[i]=0x308000
i=i+1:c[i]=0x60FF00

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x104000
i=i+1:c[i]=0x208000
i=i+1:c[i]=0x40FF00

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x084000
i=i+1:c[i]=0x108000
i=i+1:c[i]=0x20FF00







'-0x080

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x004000
i=i+1:c[i]=0x008000
i=i+1:c[i]=0x00FF00

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x004008
i=i+1:c[i]=0x008010
i=i+1:c[i]=0x00FF20

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x004010
i=i+1:c[i]=0x008020
i=i+1:c[i]=0x00FF40

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x004018
i=i+1:c[i]=0x008030
i=i+1:c[i]=0x00FF60

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x004020
i=i+1:c[i]=0x008040
i=i+1:c[i]=0x00FF80

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x004028
i=i+1:c[i]=0x008050
i=i+1:c[i]=0x00FFA0

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x004030
i=i+1:c[i]=0x008060
i=i+1:c[i]=0x00FFC0

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x004038
i=i+1:c[i]=0x008070
i=i+1:c[i]=0x00FFE0






'-0x0A0

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x004040
i=i+1:c[i]=0x008080
i=i+1:c[i]=0x00FFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x003840
i=i+1:c[i]=0x007080
i=i+1:c[i]=0x00E0FF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x003040
i=i+1:c[i]=0x006080
i=i+1:c[i]=0x00C0FF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x002840
i=i+1:c[i]=0x005080
i=i+1:c[i]=0x00A0FF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x002040
i=i+1:c[i]=0x004080
i=i+1:c[i]=0x0080FF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x001840
i=i+1:c[i]=0x003080
i=i+1:c[i]=0x0060FF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x001040
i=i+1:c[i]=0x002080
i=i+1:c[i]=0x0040FF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x000840
i=i+1:c[i]=0x001080
i=i+1:c[i]=0x0020FF






'-0x0C0

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x000040
i=i+1:c[i]=0x000080
i=i+1:c[i]=0x0000FF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x080040
i=i+1:c[i]=0x100080
i=i+1:c[i]=0x2000FF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x100040
i=i+1:c[i]=0x200080
i=i+1:c[i]=0x4000FF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x180040
i=i+1:c[i]=0x300080
i=i+1:c[i]=0x6000FF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x200040
i=i+1:c[i]=0x400080
i=i+1:c[i]=0x8000FF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x280040
i=i+1:c[i]=0x500080
i=i+1:c[i]=0xA000FF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x300040
i=i+1:c[i]=0x600080
i=i+1:c[i]=0xC000FF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x380040
i=i+1:c[i]=0x700080
i=i+1:c[i]=0xE000FF






'-0x0E0

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x400040
i=i+1:c[i]=0x800080
i=i+1:c[i]=0xFF00FF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x400038
i=i+1:c[i]=0x800070
i=i+1:c[i]=0xFF00E0

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x400030
i=i+1:c[i]=0x800060
i=i+1:c[i]=0xFF00C0

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x400028
i=i+1:c[i]=0x800050
i=i+1:c[i]=0xFF00A0

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x400020
i=i+1:c[i]=0x800040
i=i+1:c[i]=0xFF0080

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x400018
i=i+1:c[i]=0x800030
i=i+1:c[i]=0xFF0060

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x400010
i=i+1:c[i]=0x800020
i=i+1:c[i]=0xFF0040

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x400008
i=i+1:c[i]=0x800010
i=i+1:c[i]=0xFF0020






'-0x100

i=i+1:c[i]=0xFFFF00
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x552200
i=i+1:c[i]=0xAA4400
i=i+1:c[i]=0xFF6600

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x552200
i=i+1:c[i]=0xAA4400
i=i+1:c[i]=0xFF6600

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x552200
i=i+1:c[i]=0xAA4400
i=i+1:c[i]=0xFF6600

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x552200
i=i+1:c[i]=0xAA4400
i=i+1:c[i]=0xFF6600






'-0x120

i=i+1:c[i]=0xFFFFFF
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x552200
i=i+1:c[i]=0xAA4400
i=i+1:c[i]=0xFF6600

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x552200
i=i+1:c[i]=0xAA4400
i=i+1:c[i]=0xFF6600

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x552200
i=i+1:c[i]=0xAA4400
i=i+1:c[i]=0xFF6600

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x552200
i=i+1:c[i]=0xAA4400
i=i+1:c[i]=0xFF6600






'-0x140

i=i+1:c[i]=0xC08040
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x552200
i=i+1:c[i]=0xAA4400
i=i+1:c[i]=0xFF6600

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x552200
i=i+1:c[i]=0xAA4400
i=i+1:c[i]=0xFF6600

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x552200
i=i+1:c[i]=0xAA4400
i=i+1:c[i]=0xFF6600

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x552200
i=i+1:c[i]=0xAA4400
i=i+1:c[i]=0xFF6600






'-0x160

i=i+1:c[i]=0xC08040
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x552200
i=i+1:c[i]=0xAA4400
i=i+1:c[i]=0xFF6600

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x552200
i=i+1:c[i]=0xAA4400
i=i+1:c[i]=0xFF6600

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x552200
i=i+1:c[i]=0xAA4400
i=i+1:c[i]=0xFF6600

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x552200
i=i+1:c[i]=0xAA4400
i=i+1:c[i]=0xFF6600






'-0x180

i=i+1:c[i]=0xC08040
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x552200
i=i+1:c[i]=0xAA4400
i=i+1:c[i]=0xFF6600

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x552200
i=i+1:c[i]=0xAA4400
i=i+1:c[i]=0xFF6600

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x552200
i=i+1:c[i]=0xAA4400
i=i+1:c[i]=0xFF6600

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x552200
i=i+1:c[i]=0xAA4400
i=i+1:c[i]=0xFF6600






'-0x1A0

i=i+1:c[i]=0xC08040
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x552200
i=i+1:c[i]=0xAA4400
i=i+1:c[i]=0xFF6600

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x552200
i=i+1:c[i]=0xAA4400
i=i+1:c[i]=0xFF6600

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x552200
i=i+1:c[i]=0xAA4400
i=i+1:c[i]=0xFF6600

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x552200
i=i+1:c[i]=0xAA4400
i=i+1:c[i]=0xFF6600






'-0x1C0

i=i+1:c[i]=0xC08040
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x552200
i=i+1:c[i]=0xAA4400
i=i+1:c[i]=0xFF6600

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x552200
i=i+1:c[i]=0xAA4400
i=i+1:c[i]=0xFF6600

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x552200
i=i+1:c[i]=0xAA4400
i=i+1:c[i]=0xFF6600

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x552200
i=i+1:c[i]=0xAA4400
i=i+1:c[i]=0xFF6600






'-0x1E0

i=i+1:c[i]=0xC08040
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x555555
i=i+1:c[i]=0xAAAAAA
i=i+1:c[i]=0xFFFFFF

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x552200
i=i+1:c[i]=0xAA4400
i=i+1:c[i]=0xFF6600

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x552200
i=i+1:c[i]=0xAA4400
i=i+1:c[i]=0xFF6600

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x552200
i=i+1:c[i]=0xAA4400
i=i+1:c[i]=0xFF6600

i=i+1:c[i]=0x000000
i=i+1:c[i]=0x552200
i=i+1:c[i]=0xAA4400
i=i+1:c[i]=0xFF6600






'-------------------------------------------------------------------------------
'-0x200 ????????  0x200 = 512 
'- 0x000000 is transparent

for i=0 to 255:d[i]=0:next

i=-1
i=i+1:d[i]=0x000000
i=i+1:d[i]=0x0000FF
i=i+1:d[i]=0xFF0000
i=i+1:d[i]=0xFF00FF

i=i+1:d[i]=0x00FF00
i=i+1:d[i]=0x00FFFF
i=i+1:d[i]=0xFFFF00
i=i+1:d[i]=0xFFFFFF

i=i+1:d[i]=0x555555
i=i+1:d[i]=0x5555AA
i=i+1:d[i]=0xAA5555
i=i+1:d[i]=0xAA55AA

i=i+1:d[i]=0x55AA55
i=i+1:d[i]=0x55AAAA
i=i+1:d[i]=0xAAAA55
i=i+1:d[i]=0xAAAAAA


'-------------------------------------------------------------------------------


for i=0 to 255:e[i]=0:next

i=-1
i=i+1:e[i]=0x000000
i=i+1:e[i]=0x0000FF
i=i+1:e[i]=0xFF0000
i=i+1:e[i]=0xFF00FF

i=i+1:e[i]=0x00FF00
i=i+1:e[i]=0x00FFFF
i=i+1:e[i]=0xFFFF00
i=i+1:e[i]=0xFFFFFF

i=i+1:e[i]=0x555555
i=i+1:e[i]=0x5555AA
i=i+1:e[i]=0xAA5555
i=i+1:e[i]=0xAA55AA

i=i+1:e[i]=0x55AA55
i=i+1:e[i]=0x55AAAA
i=i+1:e[i]=0xAAAA55
i=i+1:e[i]=0xAAAAAA

i=i+1:e[i]=0x000000
i=i+1:e[i]=0x0000FF
i=i+1:e[i]=0xFF0000
i=i+1:e[i]=0xFF00FF

i=i+1:e[i]=0x00FF00
i=i+1:e[i]=0x00FFFF
i=i+1:e[i]=0xFFFF00
i=i+1:e[i]=0xFFFFFF

i=i+1:e[i]=0x555555
i=i+1:e[i]=0x5555AA
i=i+1:e[i]=0xAA5555
i=i+1:e[i]=0xAA55AA

i=i+1:e[i]=0x55AA55
i=i+1:e[i]=0x55AAAA
i=i+1:e[i]=0xAAAA55
i=i+1:e[i]=0xAAAAAA



'-------------------------------------------------------------------------------

'- http://www.computerarcheology.com/wiki/wiki/Arcade/MoonPatrol
'- http://www.computerarcheology.com/wiki/wiki/Arcade/MoonPatrol/SpriteColors - mpc-1.1f
'- http://www.computerarcheology.com/wiki/wiki/Arcade/MoonPatrol/SpriteColorSets - mpc-2.2h



print"palette01:"
print"'----- bbgggrrr"
print"asm"

print ";-- background colours?...."

for i=0 to 0x1FF
  t=c[i]
  b=bitwiseand(t,192)/64:t=int(t/256)
  g=bitwiseand(t,224)/32:t=int(t/256)
  r=bitwiseand(t,224)/32
  f=(b*64)+(g*8)+r
  o$=right$("00000000"+bin$(f),8)
  print "  defb "+o$+"b ;- #"+ucase$(right$("000000"+hex$(c[i]),6))
  next

print ";-- sprite colours?....  mpc-1.1f "

for i=0 to 31
  t=d[i]
  b=bitwiseand(t,192)/64:t=int(t/256)
  g=bitwiseand(t,224)/32:t=int(t/256)
  r=bitwiseand(t,224)/32
  f=(b*64)+(g*8)+r
  o$=right$("00000000"+bin$(f),8)
  print "  defb "+o$+"b ;- #"+ucase$(right$("000000"+hex$(d[i]),6))
  next



print ";-- SpriteColorSets?---- mpc-2.2h "

print "  defb $00,$01,$02,$03,$00,$00,$00,$00"
print "  defb $04,$05,$06,$07,$00,$00,$00,$00"
print "  defb $08,$09,$0A,$0B,$00,$00,$00,$00"
print "  defb $0C,$0D,$0E,$0F,$00,$00,$00,$00"

print "  defb $00,$02,$04,$06,$00,$00,$00,$00"
print "  defb $08,$0A,$0C,$0E,$00,$00,$00,$00"
print "  defb $01,$03,$05,$07,$00,$00,$00,$00"
print "  defb $09,$0B,$0D,$0F,$00,$00,$00,$00"

print "  defb $00,$04,$08,$0C,$00,$00,$00,$00"
print "  defb $01,$05,$09,$0D,$00,$00,$00,$00"
print "  defb $02,$06,$0A,$0E,$00,$00,$00,$00"
print "  defb $03,$07,$0B,$0F,$00,$00,$00,$00"

print "  defb $00,$08,$01,$09,$00,$00,$00,$00"
print "  defb $02,$0A,$03,$0B,$00,$00,$00,$00"
print "  defb $04,$0C,$05,$0D,$00,$00,$00,$00"
print "  defb $06,$0E,$07,$0F,$00,$00,$00,$00"

print "  defb $00,$01,$02,$03,$00,$00,$00,$00"
print "  defb $04,$05,$06,$07,$00,$00,$00,$00"
print "  defb $08,$09,$0A,$0B,$00,$00,$00,$00"
print "  defb $0C,$0D,$0E,$0F,$00,$00,$00,$00"
print "  defb $00,$01,$02,$03,$00,$00,$00,$00"
print "  defb $04,$05,$06,$07,$00,$00,$00,$00"
print "  defb $08,$09,$0A,$0B,$00,$00,$00,$00"
print "  defb $0C,$0D,$0E,$0F,$00,$00,$00,$00"
print "  defb $00,$01,$02,$03,$00,$00,$00,$00"
print "  defb $04,$05,$06,$07,$00,$00,$00,$00"
print "  defb $08,$09,$0A,$0B,$00,$00,$00,$00"
print "  defb $0C,$0D,$0E,$0F,$00,$00,$00,$00"
print "  defb $00,$01,$02,$03,$00,$00,$00,$00"
print "  defb $04,$05,$06,$07,$00,$00,$00,$00"
print "  defb $08,$09,$0A,$0B,$00,$00,$00,$00"
print "  defb $0C,$0D,$0E,$0F,$00,$00,$00,$00"

print ";-- playfields colours?....  ????.?? "

for i=0 to 31
  t=d[i]
  b=bitwiseand(t,192)/64:t=int(t/256)
  g=bitwiseand(t,224)/32:t=int(t/256)
  r=bitwiseand(t,224)/32
  f=(b*64)+(g*8)+r
  o$=right$("00000000"+bin$(f),8)
  print "  defb "+o$+"b ;- #"+ucase$(right$("000000"+hex$(d[i]),6))
  next


print"  end asm"





'http://www.colourlovers.com/palette/410644/Intelligence
'i=i+1:c[i]=0x303745
'i=i+1:c[i]=0x2FD4B0
'i=i+1:c[i]=0xD4BE2F
'i=i+1:c[i]=0xE9F7CB

'http://www.colourlovers.com/palette/2549771/Arbre_vert
'i=i+1:c[i]=0x005E46
'i=i+1:c[i]=0x00713D
'i=i+1:c[i]=0x89C541
'i=i+1:c[i]=0xCEDD2A

'http://www.colourlovers.com/palette/233850/Megalo_no15
'i=i+1:c[i]=0xF00000
'i=i+1:c[i]=0xF07800
'i=i+1:c[i]=0xF0A800
'i=i+1:c[i]=0x90C030

'http://www.colourlovers.com/palette/1707607/naya_heather
'i=i+1:c[i]=0x5A434D
'i=i+1:c[i]=0xFE4F3E
'i=i+1:c[i]=0xFBAF26
'i=i+1:c[i]=0xFAC14E



